$OpenBSD: patch-plugins_flac_Makefile_am,v 1.3 2016/09/13 08:48:12 dcoppa Exp $
--- plugins/flac/Makefile.am.orig	Sun Sep  4 09:23:20 2016
+++ plugins/flac/Makefile.am	Sun Sep  4 09:24:00 2016
@@ -1,13 +1,21 @@
 if HAVE_FLAC
 pkglib_LTLIBRARIES = flac.la
-flac_la_SOURCES = flac.c
+flac_la_SOURCES = flac.c\
+               ../liboggedit/oggedit_art.c\
+               ../liboggedit/oggedit_flac.c\
+               ../liboggedit/oggedit_internal.c\
+               ../liboggedit/oggedit_opus.c\
+               ../liboggedit/oggedit_utils.c\
+               ../liboggedit/oggedit_vorbis.c\
+               ../liboggedit/oggedit.h\
+               ../liboggedit/oggedit_internal.h
+
 flac_la_LDFLAGS = -module -avoid-version -export-symbols-regex flac_load
 
 if HAVE_OGG
 oggedit_def = -DUSE_OGGEDIT=1
-oggedit_lib = ../liboggedit/liboggedit.a $(OGG_LIBS)
 endif
 
-flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) $(oggedit_lib)
+flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) $(OGG_LIBS)
 AM_CFLAGS = $(CFLAGS) $(FLAC_CFLAGS) $(oggedit_def) -std=c99
 endif
